
#ifndef __SPECTRAL_DIV_H_
#define __SPECTRAL_DIV_H_

#include "../common/matrix_op.h"
#include "../common/sparse_matrix.h"
#include "../common/dynamic_arr.h"
#include "../common/dynamic_int_arr.h"
#include "../common/power_method.h"
#include "../common/modularity_mat.h"

void spectralDiv(sparse_matrix_arr* adj_matrix, elem precision, 
				 int* indices, int indices_count, elem* deltaQue,
				 int** g1,int** g2,int* g1Count,int* g2Count, int improveFlag);

void printGroup(int* g,int size);

#define USE_IMPROVE_DIV 1
#define DONT_USE_IMPROVE_DIV 0

#endif /*  __SPECTRAL_DIV_H_ */

